<style>
.h3 {
	display: block;
	font-size: 1.17em;
	margin: 0px; 
	font-size: 100%; 
	line-height: 30px; 
	padding-left:15px;
	font-weight: bold;
}
tr{line-height:30px; text-align:center;}
table{width:90%; margin: 0px 50px;}
</style>
<volist id="tpl" name="deliveryTpl" >
<table border="1" >
	<tr style="background-color: #e8f2ff;">
		<td colspan="6"><h3 class="h3" style="float: left;">{$tpl['name']}</h3>
		<span style="float: right; padding-right:15px;">
		<a class="btn btn-primary btn-xs actionds" data-action-id="{$tpl.id}" data-action-txt="恢复中……" data-action-url="__CONTROLLER__/restore" call-action-success="removeSuccess">恢复</a>
		</span>
		</td>
	</tr>
	<tr style="background-color: #f5f5f5;">
		<td>运送方式</td>
		<td>运送到</td>
		<td>首件(个)</td>
		<td>运费(元)</td>
		<td>续件(个)</td>
		<td>续件(个)</td>
	</tr>
	<foreach name="tpl.tplConfig" item="item" key="key">
	<if condition="$item['config']['enabled']*1">
	<tr>
		<td>{$item['config']['delivery']}</td>
		<td>全国</td>
		<td>{$item['config']['start']}</td>
		<td>{$item['config']['postage']}</td>
		<td>{$item['config']['plus']}</td>
		<td>{$item['config']['postageplus']}</td>
	</tr>
	<foreach name="item.config.special" item="item0" key="key">
	<tr>
		<td>{$item['config']['delivery']}</td>
		<td>{$item0['provNames']}</td>
		<td>{$item0['start']}</td>
		<td>{$item0['postage']}</td>
		<td>{$item0['plus']}</td>
		<td>{$item0['postageplus']}</td>
	</tr>
	</foreach>
	</if>
	</foreach>
</table>
<br/>
</volist>

<script type="text/javascript">
function removeSuccess() {
	$(this).parents('table').eq(0).fadeOut(500);
}
</script>

